0.0
NA
CVE-2022-50624
net: netsec: fix error handling in netsec_register_mdio()
Description

In the Linux kernel, the following vulnerability has been resolved: net: netsec: fix error handling in netsec_register_mdio() If phy_device_register() fails, phy_device_free() need be called to put refcount, so memory of phy device and device name can be freed in callback function. If get_phy_device() fails, mdiobus_unregister() need be called, or it will cause warning in mdiobus_free() and kobject is leaked.

INFO

Published Date :

Dec. 8, 2025, 2:15 a.m.

Last Modified :

Dec. 8, 2025, 2:15 a.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2022-50624 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Resolve memory leaks by implementing proper error handling in device registration and freeing resources.
  • Ensure phy_device_free() is called on phy_device_register() failure.
  • Call mdiobus_unregister() if get_phy_device() fails.
  • Fix kobject leaks in error handling paths.
  • Apply the patch to netsec module in the Linux kernel.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-50624 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-50624 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-50624 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-50624 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Dec. 08, 2025

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: net: netsec: fix error handling in netsec_register_mdio() If phy_device_register() fails, phy_device_free() need be called to put refcount, so memory of phy device and device name can be freed in callback function. If get_phy_device() fails, mdiobus_unregister() need be called, or it will cause warning in mdiobus_free() and kobject is leaked.
    Added Reference https://git.kernel.org/stable/c/1e0bee973ef6fc3c1e3acb014515eaea37c8fa17
    Added Reference https://git.kernel.org/stable/c/62f0a08e82a6312efd7df7f595c0b11d4ffde610
    Added Reference https://git.kernel.org/stable/c/728884b22d83148a330b23f9472f1e118b589211
    Added Reference https://git.kernel.org/stable/c/846e677daf51220d7975c61a20e440a88473951e
    Added Reference https://git.kernel.org/stable/c/94423589689124e8cd145b38a1034be7f25835b2
    Added Reference https://git.kernel.org/stable/c/fda2d07234a21be4d71ebfe97a45f499726902d6
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
No CVSS metrics available for this vulnerability.